The Accordion Pane Component > FAccordionPane.setTransitionTime()

 

FAccordionPane.setTransitionTime()

Availability

Flash Player 6.

Usage

myAccordion_acp.setTransitionTime (frames)

Parameters

frames A number specifying the number of frames it will take for a section to transition (open or close).

Returns


Nothing

Description

This method specifies the number of frames it will take a section of the component to complete a transition (opening and closing).

 

Example

The accordion_setTransitionTime.fla example file contains an example of using this method.

The following section of code adds four sections to the component, and sets the transition time to 10.

	var sections = ["Section 1","Section 2","Section 3","Section 4"];
	myAccordionPane_acp.setDataProvider(sections);
	myAccordionpane.setTransitionTime(10); //will take 10 frames to transition
	myAccordionPane_acp.setSelectedIndex(2);